package com.ksyun.campus.dataserver.domain;

/**
 * @author sxt
 * @version 1.0
 * @description TODO
 * @date 2023/8/11 01:47
 */
public class MetaServerInfo extends ServerInfo{
    /**
     * 是否是master metaserver节点
     */
    private boolean master;

    public MetaServerInfo(String ip, String port, String zone, String rack) {
        super(ip, port, zone, rack);
    }

    public MetaServerInfo(String ip, String port, String zone, String rack, boolean master) {
        super(ip, port, zone, rack);
        this.master = master;
    }

    public MetaServerInfo() {
    }

    public boolean isMaster() {
        return master;
    }

    public void setMaster(boolean master) {
        this.master = master;
    }
}
